package cn.wecloud.im.multiplayervideodemo.http

import cn.wecloud.im.multiplayervideodemo.http.model.BaseHttpRes
import cn.wecloud.im.multiplayervideodemo.http.model.LiveMeetRes
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Query

interface LiveMeetService {

    /**
     * 创建会议
     */
    @GET("meet/create")
    fun createMeetLive(
        @Query("clientId") clientId: String,
        @Query("appKey") appKey: String,
        @Query("sign") sign: String,
        @Query("platform") platform: Int,
        @Query("timestamp") timestamp: String,
    ): Observable<BaseHttpRes<LiveMeetRes>>


    /**
     * 加入会议
     */
    @GET("meet/join")
    fun joinMeetLive(
        @Query("roomId") roomId: String,
        @Query("clientId") clientId: String,
        @Query("appKey") appKey: String,
        @Query("sign") sign: String,
        @Query("platform") platform: Int,
        @Query("timestamp") timestamp: String,
    ): Observable<BaseHttpRes<LiveMeetRes>>
}